package com.example.piece.repository

import com.example.piece.net.NetManager
import com.example.base.repository.BaseRepository

/**
 * 主页的 Repository
 */
class MainActivityRepository : BaseRepository() {

    /**  用户登陆  **/
    suspend fun login(username: String, password: String) = request {
        NetManager.apiService.login(username, password)
    }

    /**  退出登陆  **/
    suspend fun logout() = request {
        NetManager.apiService.logout()
    }

}